package main;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import panels.MenuTabPanel;

public class MainApp extends JFrame {

	private static final long serialVersionUID = 1L;
	private static Conexion conexion;

	private JPanel contentPane;
	private MenuTabPanel menu;

	public MainApp() {
//		conexion = new Conexion();
//		conexion.open();
		
		contentPane = new JPanel();
		contentPane.setLayout(new BorderLayout(0, 0));

		menu = new MenuTabPanel();
		

		contentPane.add(menu, BorderLayout.CENTER);

		setTitle("PPT Software");
		setContentPane(contentPane);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		setVisible(true);
		setResizable(false);
		setMinimumSize(new Dimension(700, 500));
		setLocationRelativeTo(null);
	}

	public static void main(String[] args) {
		new MainApp();
		// Select Look & Feel
		try {
			UIManager.setLookAndFeel("joxy.LookAndFeel");
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public JPanel getContentPane() {
		return contentPane;
	}

	public MenuTabPanel getMenu() {
		return menu;
	}

}
